package com.gitee.loyo.jdbc

import com.gitee.loyo.ExecuteType

object JDBCListener {
    /**
     * 开启连接时
     */
    var onOpenedListener: ((Ds, Conn) -> Unit)? = null

    /**
     * 释放连接时
     */
    var onReleasedListener: ((Conn) -> Unit)? = null

    /**
     * 设置参数时
     */
    var onParameterizedListener: ((Conn, PStmt, Int, Any?) -> Unit)? = null

    /**
     * 提交语句时
     */
    var onExecutedListener: ((Conn, PStmt, com.gitee.loyo.ExecuteType) -> Unit)? = null
}